using pixolut.BizBlox;
using System;

public class LunchOrderCollection : DOCollection
{

//START BizBlox Generated Code : Do not remove or alter this comment
//Last Updated : Friday, 30 March 2007 3:00:53 PM
//BizBlox Version : 1.2.1.0
#region "BizBlox Generated Code"


// Start BizBloxBuilder Metadata
// $Identifier = +InheritedElements
// $DoNotModify = False

    public LunchOrderCollection() : base(new DOFactory((DataObject)new LunchOrder())) {
    }

    //to typecast your item() property
    public new LunchOrder this[int i]{
        get{
            return (LunchOrder)base[i];
        }
    }


// End BizBloxBuilder Metadata

// Start BizBloxBuilder Metadata
// $Identifier = LunchOrderID
// $DoNotModify = False

// End BizBloxBuilder Metadata

// Start BizBloxBuilder Metadata
// $Identifier = StudentID
// $DoNotModify = False

// End BizBloxBuilder Metadata

// Start BizBloxBuilder Metadata
// $Identifier = StudentID.ForeignReference
// $DoNotModify = False

// End BizBloxBuilder Metadata

// Start BizBloxBuilder Metadata
// $Identifier = FoodID
// $DoNotModify = False

// End BizBloxBuilder Metadata

// Start BizBloxBuilder Metadata
// $Identifier = FoodID.ForeignReference
// $DoNotModify = False

// End BizBloxBuilder Metadata

// Start BizBloxBuilder Metadata
// $Identifier = dt_OrderDate
// $DoNotModify = False

// End BizBloxBuilder Metadata

// Start BizBloxBuilder Metadata
// $Identifier = Quantity
// $DoNotModify = False

// End BizBloxBuilder Metadata

// Start BizBloxBuilder Metadata
// $Identifier = +OtherElements
// $DoNotModify = False

// End BizBloxBuilder Metadata

#endregion

//END BizBlox Generated Code : Do not remove or alter this comment

	// Example finder method
	// *********************
	public void FindByFood( Guid FoodID ) 
	{ 
		SQLBuilder mySql = base.GetSqlBuilder(); 
		mySql.addWhere( LunchOrder.Columns.FoodID, FoodID.ToString() ); 
		base.Find( mySql ); 
	} 

}